<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="com.zjr.domain.*"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加用户</title>
<link type="text/css" rel="stylesheet" href="<%=path %>/skin/css/base_style.css" />
<link type="text/css" rel="stylesheet" href="<%=path %>/skin/css/form.css" />
<script type="text/javascript" src="<%=path %>/skin/js/jquery-1.7.1.js"></script>
<script type="text/javascript" src="<%=path %>/skin/js/form.js"></script>
</head>
<% 
	HttpSession userSession = request.getSession();
	User user = (User)userSession.getAttribute("user");
	if(user.getPosition() < 2){
		response.sendRedirect(path+"/user/user_warn.jsp");
	}
%>
<body>
<form action="<%=path %>/UserServlet?flag=addUser" class="fm" method="post">
	<table class="fm_tab" align="center">
		<tr>
			<td width="15%" class="fm_td1 fyh"><img src="<%=path %>/skin/images/form_img_03.png" class="fm_mid"/><span class="fm_text">用户名：</span></td>
			<td width="35%" class="fm_td2"><input type="text" name="username" class="fm_tt1" style="width:80%"/></td>
		</tr>
		<tr>
			<td width="15%" class="fm_td1 fyh"><img src="<%=path %>/skin/images/form_img_03.png" class="fm_mid"/><span class="fm_text">密码：</span></td>
			<td width="35%" class="fm_td2"><input type="text" name="password" class="fm_tt1" style="width:80%"/></td>
		</tr>
		<tr>
			<td width="15%" class="fm_td1 fyh"><img src="<%=path %>/skin/images/form_img_03.png" class="fm_mid"/><span class="fm_text">部门：</span></td>
			<td width="35%" class="fm_td2">
				<select name="department">
					<option value="1">技术部</option>
					<option value="2">研发部</option>
					<option value="3">人事部</option>
					<option value="4">财务部</option>
					<option value="5">行政部</option>
				</select>
			</td>
		</tr>
		<tr>
			<td width="15%" class="fm_td1 fyh"><img src="<%=path %>/skin/images/form_img_03.png" class="fm_mid"/><span class="fm_text">地址：</span></td>
			<td width="35%" class="fm_td2"><input type="text" name="address" class="fm_tt1" style="width:80%"/></td>
		</tr>
		<tr>
			<td width="15%" class="fm_td1 fyh"><img src="<%=path %>/skin/images/form_img_03.png" class="fm_mid"/><span class="fm_text">手机号：</span></td>
			<td width="35%" class="fm_td2"><input type="text" name="phone" class="fm_tt1" style="width:80%"/></td>
		</tr>
		<tr>
			<td width="15%" class="fm_td1 fyh"><img src="<%=path %>/skin/images/form_img_03.png" class="fm_mid"/><span class="fm_text">职位：</span></td>
			<td width="35%" class="fm_td2">
				<select name="position">
					<option value="0">员工</option>
					<option value="1">部长</option>
					<option value="2">总经理</option>
				</select>
			</td>
		</tr>
		<tr>
         	<td class="fm_td5" colspan="4">
         		<input type="submit" class="fm_button fyh" value="提&nbsp;&nbsp;&nbsp;&nbsp;交"/>
            </td>
         </tr>
	</table>
</form>
</body>
</html>